﻿using GedeaProject.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GedeaProject.Business.Parsers
{
    public class CustomerStandardParser
    {
        private  Customer customer { get; set; }

        public CustomerStandardParser(Customer customer)
        {
            this.customer = customer;
        }

        public string GetInternalBankCode()
        {
            return this.customer.Cbu.Remove(3) == "014" ? "71" : "51";
        }

        public string GetIdForBank()
        {
            return CambiarNombreHelper.StringFormat(this.customer.IdForBank, 22, ' ', false);
        }
    }
}
